<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <title>v-for</title>
    <script src="js/vuejs-2.5.16.js"></script>
</head>
<body>
<div id="app">
    <table width="100%" align="left">
        <tr v-for="user in users">
            <td>{{user.name}}</td>
            <td>{{user.sex}}</td>
            <td>{{user.age}}</td>
        </tr>
    </table>

</div>

<script>
    let vue=new Vue({
        el:"#app",
        data:{
            users: [
                {name:"jack",sex:1,age:18},
                {name:"tom",sex:1,age:28},
                {name:"rose",sex:0,age:38},
            ]
        }
    })
</script>
</body>
</html>